#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class FileDown : Business.BusinessBase<FileDown, int>
	{
		#region Fields and Properties

		private String fileItemCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String FileItemCode
		{
			get { return fileItemCode; }
			set
			{
				if (value != fileItemCode)
				{
					MarkChanged("FileItemCode");
					fileItemCode = value;
				}
			}
		}

		private String des = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Des
		{
			get { return des; }
			set
			{
				if (value != des)
				{
					MarkChanged("Des");
					des = value;
				}
			}
		}

		private DateTime date = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime Date
		{
			get { return date; }
			set
			{
				if (value != date)
				{
					MarkChanged("Date");
					date = value;
				}
			}
		}

		private String downLoader = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String DownLoader
		{
			get { return downLoader; }
			set
			{
				if (value != downLoader)
				{
					MarkChanged("DownLoader");
					downLoader = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public FileDown()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override FileDown DataSelect(int id)
		{
			return Services.DALService.FileDownService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.FileDownService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.FileDownService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.FileDownService.Delete(this);
		}

		#endregion Base overrides
	}
}
